﻿using System.Linq;
using Core.Contract.DataContract;
using Data.DAO;
using www.Models;

namespace Data.BO
{
    public class AdvertiseRefBO//:BaseBO<AdvertiseDAO,RelaxAdvertise>
    {
        #region Value
        private readonly AdvertiseRefDAO DAO = new AdvertiseRefDAO();
        #endregion

        #region Ham Lay du lieu

        public IQueryable<RelaxAdvertiseDataContract> GetAdvertiseDataContracts()
        {
            return DAO.GetData();
        }

        public IQueryable<RelaxAdvertiseDataContract> GetDataItem()
        {
            return DAO.GetDataItem();
        }

        #endregion

        #region ham Add
        public void Add(ADVERTISE_REF advertise)
        {
            DAO.Add(advertise);
        }
       
        #endregion

        #region Ham Update

        public void Update(ADVERTISE_REF advertise)
        {
            DAO.Update(advertise);
        }
        #endregion

        #region Ham Delete

        public void Delete(int  iId)
        {
            DAO.Delete(iId);
        }
        #endregion
    }
}
